from bsccommonlib.pycommons import AbstractObject
import datetime

class TargetObject(AbstractObject):
    def get_fields(self):
        return [\
                   ['owner', 'Owner', str]
                 , ['name', 'Name', str]
                 , ['start_date', 'Start Date(YYYY-MM-dd)', datetime.date]
                 , ['duration', 'Duration', int]
                 , ['initial_status', 'Initial Status', float]
                 , ['target_value', 'Target Value', float]
                 , ['increase', None, int]
                 , ['unit', 'Unit(meter,kg,hour,minute)', str]
               ]


class TargetSubmit(AbstractObject):
    def get_fields(self):
        return [\
                  ['point', 'Point', float]
                 , ['issue_date', 'Issue Date(YYYY-MM-dd)', datetime.date]
               ]

class TargetGraphicData(AbstractObject):
    def get_fields(self):
        return [\
                  ['date', 'Date', datetime.date]
                 , ['target_value', 'Target Value', float]
                 , ['submit_value', 'Submit Value', float]
               ]



